//
//  IGNCommentApi.m
//  jingdongfang
//
//  Created by BOE on 2018/5/17.
//  Copyright © 2018年 BOE-SBG-CTO. All rights reserved.
//

#import "IGNCommentApi.h"

#pragma --<评论List>
@implementation IGNCommentListApi

- (NSString *)requestUrl {
    return @"circle/comment/commentList";
}

- (id)requestArgument {
    return @{
             @"type":@(_type),
             @"id":_productId,
             @"lastQueryId":_lastQueryId,
//             @"pageSize":@(_pageSize),
             @"pageNum":@(_pageNum)
             };
}


@end

@implementation IGNCommentListModel

@end

@implementation IGNCommentListResp

@end

#pragma --<发表评论>
@implementation IGSubmitCommentApi

- (NSString *)requestUrl {
    return @"circle/comment/submitComment";
}

- (id)requestArgument {
    return @{
             @"type":@(_type),
             @"id":_productId,
             @"content":_content,
             @"parentId":_parentId==nil?@"":_parentId
             };
}

@end

@implementation IGSubmitCommentModel

@end
@implementation IGSubmitCommentResp

@end

#pragma --<评论点赞>
@implementation IGNCommentZanApi

- (NSString *)requestUrl {
    return @"circle/comment/likeComment";
}

- (id)requestArgument {
    return @{
             @"type":@(_type),
             @"id":_commentId,
             @"isLike":_isLike
             };
}


@end

@implementation IGNCommentZanModel

@end

@implementation IGNCommentZanResp

@end

#pragma --<评论删除>
@implementation IGNCommentDelApi

- (NSString *)requestUrl {
    return @"circle/comment/delComment";
}

- (id)requestArgument {
    return @{
             @"type":@(_type),
             @"id":_commentId
             };
}


@end

@implementation IGNCommentDelModel

@end

@implementation IGNCommentDelResp

@end
